import axios from '../utils/http'
const IndexStroe={
    namespaced:true,
    state:()=>({
        banner_list:[]
    }),
    mutations: {
      BannerMutations(state,banner_list){
        state.banner_list=banner_list
      }
    },
    actions: {
      BannerActions(context){
        axios.get('/api/getbanner').then((res
          )=>{
          console.log('111111541646');
          var list=res.list
          console.log(list);
           context.commit('BannerMutations',list)
           
        }).catch(e  =>{
          console.log(e)
        })
      }
    }
}
export default IndexStroe